#ifndef COMPRESS_H
#define COMPRESS_H

#include <QObject>
#include <QDebug>
#include <QFile>
#include <QTextStream>
#include <QRegExp>
#include <regex>
#include <QRegularExpression>
class Compress
{
public:
    Compress();

     void SetPatFilePath(const QString &path);

     void ReadPatFile();

     int max = 65535;
     QString getStringBetween(const QString str, const QString start, const QString end);
     QString getRearStr(const QString data, const QString mid);
     QString getFrontStr(const QString str, const QString mid);
     void writeFile(QTextStream &in, const QString l, const QString v, const QString c, const QString n);
     int getMax() const;
     void setMax(int newMax);

 private:
     QString loadFilePath;
     QVector<QString> lineVector; // 假设这里填充了初始数据
     QStringList keywords = {"AC_SET_", "RPT", "CONT", "MATCH", "CAPTURE", "HOST_EN", "LOOP"};//这里是微指令
     QMap<int,QString> AC_SET; //获取ACSET
     QHash<int, QString> commentData; //存储与行关联的注释
};

#endif // COMPRESS_H
